<%--中文乱码处理--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<jsp:useBean id="news" class="com.bdqn.entity.News">
    <jsp:setProperty name="news" property="title" value="你好，2021"></jsp:setProperty>
    <jsp:setProperty name="news" property="author" value="张三"></jsp:setProperty>
</jsp:useBean>